<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/FInclude/includeTaglibs.jsp"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<link rel="stylesheet" href="${frontPath}/style/ckeditor.plugin.css" />
<c:import url="/FInclude/backEndCssJs.jsp" />
<script type="text/javascript"
	src="${frontPath}/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${frontPath}/js/ckeditor.plugin.js"></script>
<script src="${frontPath}/js/DatePicker/WdatePicker.js"></script>
</head>
<body>
	<form action="mod.json" method="post" onsubmit="return false;" mod >
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="row">
				<div class="input-group">
					<button class="form-control" onclick="history.back();">返回</button>
				</div>
				<div class="input-group">
					<span class="input-group-addon">正文</span>
					<textarea style="width:320px" name="detail">${text.detail }</textarea>
				</div>
				<div class="input-group">
					<span class="input-group-addon">英文正文</span>
					<textarea style="width:320px" name="e_detail">${text.e_detail }</textarea>
				</div>
				<div class="input-group">
					<input type="submit" class="form-control" a>
				</div>
			</div>
		</div>
	</div>
	</form>
	<script>
	$("form[mod] [type=submit]").click(function(){
		var _this = $("form[mod]");
		$("[name=detail]").val(detail.getSimpleData());
		$("[name=e_detail]").val(e_detail.getSimpleData());
		_this.postData(
				_this.attr("action"),
				{textId:'${param.textId }'},
				function(data){
					$.box("修改成功");
		});
	});
	
	var detail = CKEDITOR.replace("detail",
				{
					toolbar : [ ['Bold', 'TextColor', 'Link','Image'] ],
					enterMode : CKEDITOR.ENTER_BR,
					height : '450px'
				});
	var e_detail = CKEDITOR.replace("e_detail",
				{
					toolbar : [ ['Bold', 'TextColor', 'Link','Image'] ],
					enterMode : CKEDITOR.ENTER_BR,
					height : '450px'
				});
		var config = detail.config;
		config.language = 'zh-cn';
		config.font_names = "宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;"
				+ config.font_names;
</script>
</body>
</html>